import axios from './request';

export default {
  getOutlines() {
    return axios.get('/outlines');
  },
  addOutlines(data) {
    return axios.post('/outlines', data);
  },
  editOutlines(id, data) {
    return axios.put(`/outlines/${id}`, data);
  },
  deleteOutlines(id) {
    return axios.delete(`/outlines/${id}`);
  },
  outlinesExist(data) {
    return axios.get('/outlines/exist', {
      params: data,
    });
  },
  sortOutlines(fid, sid) {
    return axios.put(`/outlines/sort/${fid}/${sid}`);
  },
};
